import request from '@/utils/request'

// 查询神椰店铺列表
export function shenyeShopList(query) {
  return request({
    url: '/shenye/shop/list',
    method: 'get',
    params: query
  })
}
// 新增神椰店铺
export function addShenyeShop(data) {
  return request({
    url: '/shenye/shop',
    method: 'post',
    data
  })
}
// 查询神椰店铺详情
export function shenyeShopDetail(id) {
  return request({
    url: '/shenye/shop/detail/' + id,
    method: 'get',
  })
}
// 编辑神椰店铺
export function updateShenyeShop(data) {
  return request({
    url: '/shenye/shop',
    method: 'put',
    data: data
  })
}
// 编辑神椰店铺状态[启用-停用]
export function editShopStatus(params) {
  return request({
    url: '/shenye/shop/status',
    method: 'put',
    params
  })
}
// 查询行业下拉框
export function shopIndustrySelect(params) {
  return request({
    url: '/shenye/shop/industry/select',
    method: 'get',
    params
  })
}
// 商家二维码
export function shenyeShopQrcode(id) {
  return request({
    url: '/shenye/shop/qrcode/' + id,
    method: 'get',
  })
}
